package com.example.travel.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.naming.Name;
import java.util.Date;

/**
 * @Author : LinQingLiang
 * @file : Spot.java
 * @Since : 2023/2/5 12:33
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("spots")
public class Spot {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("景点id")
    private Integer id;

    @ApiModelProperty("景点名称")
    private String spotName;

    @ApiModelProperty("门票")
    private String cost;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("开始时间")
    private Date startTime;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("结束时间")
    private Date endTime;

    @ApiModelProperty("景点是否开放")
    private boolean state;

    @ApiModelProperty("负责人id")
    private Integer chargeId;

    @ApiModelProperty("旅游景点图片")
    private String url;

    @ApiModelProperty("图片类别")
    private String type;

    @ApiModelProperty("景点内容")
    private String content;

    @ApiModelProperty("当前门票数量")
    private Integer number;

    @ApiModelProperty("景点评分")
    private Integer value;

    @ApiModelProperty("文章id")
    private Integer articleId;

}
